<?php /* @var $this Controller */ ?>
<?php $this->beginContent('administrator.views.layouts.main'); ?>

<div class="wrap clear">
    <div class="sidebar">
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('sysmgts',this)">
                <h2>System Management</h2>
            </div>
            <div id="sysmgts" class="block-content">
                <ul class="nav nav-vertical">
                    <?php if (Yii::app()->user->isGuest) : ?>
                    <li><a href="/administrator/default/login">Login</a></li>
                    <?php else : ?>
                    <li><a href="/administrator/default/logout">Logout</a></li>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('usermgts',this)">
                <h2>User Panel</h2>
            </div>
            <div id="usermgts" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/user/create">Create User</a></li>
                    <li><a href="/administrator/user/admin">Manage User</a></li>
                </ul>
            </div>
        </div>

        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('statesmgts',this)">
                <h2>States Panel</h2>
            </div>
            <div id="statesmgts" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/states/create">Create States</a></li>
                    <li><a href="/administrator/states/Admin">Manage States</a></li>
                </ul>
            </div>
        </div>
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('questions',this)">
                <h2>Questions Panel</h2>
            </div>
            <div id="questions" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/questions/create">Create Questions</a></li>
                    <li><a href="/administrator/questions/admin">Manage Questions</a></li>
                </ul>
            </div>
        </div>
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('loantypes',this)">
                <h2>Loan types Panel</h2>
            </div>
            <div id="loantypes" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/loantypes/create">Create Loan types</a></li>
                    <li><a href="/administrator/loantypes/admin">Manage Loan types</a></li>
                </ul>
            </div>
        </div>
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('creditquality',this)">
                <h2>Credit Quality Panel</h2>
            </div>
            <div id="creditquality" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/creditquality/create">Create Credit Quality</a></li>
                    <li><a href="/administrator/creditquality/admin">Manage Credit Quality</a></li>
                </ul>
            </div>
        </div>
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('employmentstatus',this)">
                <h2>Employment Status Panel</h2>
            </div>
            <div id="employmentstatus" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/employmentstatus/create">Create Employment Status</a></li>
                    <li><a href="/administrator/employmentstatus/admin">Manage Employment Status</a></li>
                </ul>
            </div>
        </div>
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('loanterms',this)">
                <h2>Loan Terms Panel</h2>
            </div>
            <div id="loanterms" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/loanterms/create">Create Loan Terms</a></li>
                    <li><a href="/administrator/loanterms/admin">Manage Loan Terms</a></li>
                </ul>
            </div>
        </div>
        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('loanratings',this)">
                <h2>Loan Ratings Panel</h2>
            </div>
            <div id="loanratings" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/loanratings/create">Create Loan Ratings</a></li>
                    <li><a href="/administrator/loanratings/admin">Manage Loan Ratings</a></li>
                </ul>
            </div>
        </div>

        <div class="block block-nav">
            <div class="block-title" onclick="menu_toggle('loanratingsterms',this)">
                <h2>Loan Rating Terms Panel</h2>
            </div>
            <div id="loanratingsterms" class="block-content">
                <ul class="nav nav-vertical">
                    <li class="active"><a href="/administrator/loanratingterms/create">Create Loan Rating Terms</a></li>
                    <li><a href="/administrator/loanratingterms/admin">Manage Loan Rating Terms</a></li>
                </ul>
            </div>
        </div>

    </div>
    <div class="content">
        <?php echo $content; ?>
    </div><!-- content -->
</div>

<?php $this->endContent(); ?>